/*
 * @Author: LVGRAPE
 * @LastEditors: LVGRAPE
 */
/***
 * @Author: LVGRAPE
 * @Date: 2022-09-13 17:29:13
 * @LastEditTime: 2025-04-15 17:26:04
 * @LastEditors: LVGRAPE
 * @Description:
 * @FilePath: \InductionArmor_x4\src\hardware\uart\uart.h
 * @可以输入预定的版权声明、个性签名、空行等
 */

#ifndef __UART_H_
#define __UART_H_
#ifdef __cplusplus
extern "C"
{
#endif // __cplusplus

#include "usr_def.h"

void Uart1_Init(void);
void uart1_flush();
void uart1_puc(char c);
void uart1_puts(char *s);
char uart1_put(uint8_t *c, uint8_t len);
#ifdef DEBUG
void LOG(const char *format, ...);
#define dbg_here LOG("\n dbg here:%ld \n", __LINE__)
void uart_rx1_task_init();
uint8_t isRx1Busy();
void uart_rx_handle();

extern bit rx_isp_flag;
extern bit adc_printf_on;
extern uint8_t ispReqCnt;
#endif

#ifdef __cplusplus
}
#endif // __cplusplus
#endif
